

<!DOCTYPE html>


<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>

</title><link href='./home/css/etm.css' rel='stylesheet' type='text/css' /><!--[if IE 8]> <link href='/Themes/Theme3/ie8Fix.css' rel='stylesheet' /> <![endif]-->

    <script src="./home/js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="./home/js/flexigrid.js"></script>
    <script src="./home/js/jQuery.Ex.js"></script>
    <script src="./home/js/WdatePicker.js"></script>
    <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE"/><script src='./home/js/jquery.nicescroll.min.js' type='text/javascript'></script><script type='text/javascript'>var isEtmClient=false;function ReSizeScrollbar() { if ($('form').getNiceScroll().length > 0) {     $('form').getNiceScroll().onResize();}}function ReSizeFlexgridScrollbar() { if ($('.bDiv').getNiceScroll().length > 0) {     $('.bDiv').getNiceScroll().onResize();}}function InitFlexgridScrollbar(){     $('.bDiv').niceScroll({cursorcolor: '#75A801',zindex:4});}function ReSizenDivScrollbar() { if ($('.flexigrid .nDiv').getNiceScroll().length > 0) {     $('.flexigrid .nDiv').getNiceScroll().onResize();}}function InitnDivScrollbar(){     $('.flexigrid .nDiv').niceScroll({cursorcolor: '#75A801',horizrailenabled:false});}function proxyExecuteFun(funName) {if(funName == undefined || funName==null|| funName.length==0){window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return;}  if (window[funName]()) {window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return true; } return false; };var _tmpOnSelectedFile = null;function onSelectedFile(fileName, fileUrl, isImg) {   if (_tmpOnSelectedFile != null) {        _tmpOnSelectedFile(fileName, fileUrl, isImg);    }}function showFileList(callback) {   window.parent.showDialog('查看素材库', '/Modules/OA/CMyFileListView.aspx?navId=bd52eb02-7ff3-49f5-b93b-b1d98c31e8a0', '900px', '450px');   _tmpOnSelectedFile = callback;}$(function () {if (navigator.userAgent.toLowerCase().indexOf('edge/') != -1) { $('input[type=submit],.tmpSubmitButton').bind({ mouseenter: function () { $(this).addClass('tmpSubmitButton'); $(this).prop('type', 'button'); }, mouseleave: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); }, click: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); } }); }if (window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { window.parent.showsending(false, ''); }$(".button").each(function() { if ($(this).attr("type") == "submit" &&!$(this).hasClass('noloading') && window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { var tmpClick = $(this).attr("onclick");if(tmpClick == undefined || tmpClick==null|| tmpClick.length<2){ $(this).attr("onclick","proxyExecuteFun();");return;}  if (tmpClick.indexOf("return ") != -1 && tmpClick.indexOf("(") != -1) { tmpClick = tmpClick.substring(7).replace(/\s+/g, ''); if (tmpClick.indexOf("()") != -1) { var funName = tmpClick.substring(0, tmpClick.indexOf("(")); $(this).attr("onclick","return proxyExecuteFun('" + funName + "');"); } } } });$('body').click(function() {     if (typeof parent.onChildPageClick !='undefined') {         parent.onChildPageClick();     }});     $('form').height($(window).height()-0).niceScroll({cursorcolor: '#75A801',horizrailenabled:false });     $(window).resize(function () {         ReSizeScrollbar();     });});</script>
    <script type="text/javascript">
        function show(CampusWorkGuid, DoStatus) {
            if (check(DoStatus, "0")) {
                window.parent.showDialog("园务编辑", "../Modules/OA/CampusWorkEdit_0.aspx?sc=btn&navId=bd52eb02-7ff3-49f5-b93b-b1d98c31e8a0&CampusWorkGuid=" + CampusWorkGuid, "900px", "480px");
            }
        }

        function showCampusInfo(CampusWorkGuid) {
            window.parent.showDialog("详情", "../Modules/OA/CampusWorkInfo.aspx?CampusWorkGuid=" + CampusWorkGuid + "&navId=" + 'bd52eb02-7ff3-49f5-b93b-b1d98c31e8a0', "700px", "520px");
        }

        function Add() {
            show('', "0");
            return false;
        }
        $(function () {
            $(".CampusWorkDelete").live("click", function () {
                if (check($(this).attr("DoStatus"), "1")) {
                    if (confirm("确认要删除吗")) {
                        $.AjaxETM("OA_CampusWorkDelete", { "CampusWorkGuid": $(this).attr("CampusWorkGuid") },
                            function (data) {
                                alert(data);
                            },
                             true, "text");
                    }
                }
            });
        });
        function checks(dostatus) {
            if (dostatus == "2") {
                alert("此事务已 完成，不能修改事务进度。");
                return false;
            } else
                return true;
        }
        //str==1 表示进行删除操作
        function check(dostatus, str) {
            if (dostatus != "0") {
                var msg = "此事务已 ";
                if (dostatus == "1") {
                    if (str == "1")
                        msg = msg + "在进行中，不能删除。";
                    else
                        msg = msg + "在进行中，不能修改。";
                }
                else if (dostatus == "2") {
                    if (str == "1")
                        msg = msg + "完成，不能删除。";
                    else
                        msg = msg + "完成，不能修改。";
                }
                alert(msg);
                return false;
            } else
                return true;
        }
        function Del() {
            var count = 0;
            var dostatus = "";
            jsonObjList = [];
            $("input[name='selectItem']:checkbox:checked").each(function () {
                var CampusWorkGuid = $(this).val();
                var CampusWorkName = $(this).parent().parent().attr("CampusWorkName");
                var dostatus = $(this).parent().parent().attr("DoStatus");
                if (check(dostatus, "1")) {
                    jsonObjList.push({ "CampusWorkGuid": CampusWorkGuid, "CampusWorkName": CampusWorkName });
                    count += 1;
                }
                else {
                    return false;
                }
            });
            if (count == 0) {
                alert("请选择一条记录");
                return false;
            }
            else {
                if (confirm("确定要删除吗")) {

                    $.AjaxETM("OA_CampusWorkDelete_More", { "CampusWorkGuid": JSON.stringify(jsonObjList) },
                        function (data) {
                            alert(data);
                        },
                            true, "text");
                }
                else {
                    alert("记录状态为 " + getStatusName(dostatus) + "，无法删除！");
                }
            }
            return false;
        }

    </script>
</head>
<body>
    <form method="post" action="CampusWorkList.aspx?navId=bd52eb02-7ff3-49f5-b93b-b1d98c31e8a0" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTIwODc4MjUxNTYPZBYCAgMPZBYCZg8QZBAVBAnor7fpgInmi6kJ5a6J5YWo57G7CeWNq+eUn+exuwnph43opoHnsbsVBCQwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAkNDM5OTc3ZGUtZTE0Yy00ODY3LWJmZjAtMDcyYTgyOTYxYzQ2JDA0NWQwMjIwLThkNWYtNDNkMi05MzZjLTA0YTJhYzc2YTVhMyQ5NzUyY2ZmNC02NGYxLTRiODQtYmVlNC04YTJkYjYzM2FkZDIUKwMEZ2dnZ2RkZI4fajICdCSO215ktwvk1gpvmB8XWK50E4BN47T+U+jB" />
</div>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="5CEE2715" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAA3FMeW0/4pz9xN/M/gtw+lSpIICcBXk6OcckZ9mDupcBjNSVzHg9iXrR4lwUfeONOvxFoRjFBmyD0/Fm5dT5p5cge5de0nN0vs8/bk2nCAsQ8ylK1/Knozf0UW0pxnSsjNFbNzrzNQ/BWg09TRNsl3Bzx+hQ2fnG4jzGKqH16dggmrZFGNA/abPnvvronHkZuHteAXFupbDPm4hxR+kKgwVJmtrF/8WDeZIzCy+n2QLCJNcQtnKtb31hEtbT6bWJ987Sm1SHUeCNEDEgIHUfUJe33HoUEQQ0xEabPmGsV4ZPw3I8hAeBIKyv2dEeHoAGxg=" />
</div>
        <table class="search">
            <tr>
                  <td class="textAlignRight" style="width: 80px;">事务类型：
                </td>
                <td class="borderRight" style="width: 160px;">
                    <select name="ddlCategory" id="ddlCategory" class="int">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="439977de-e14c-4867-bff0-072a82961c46">安全类</option>
	<option value="045d0220-8d5f-43d2-936c-04a2ac76a5a3">卫生类</option>
	<option value="9752cff4-64f1-4b84-bee4-8a2db633add2">重要类</option>

</select>
                </td>
                <td class="textAlignRight" style="width: 80px;">完成时间：
                </td>
                <td class="borderRight" style="width: 180px;">
                    <input name="tbFinishTime1" type="text" id="tbFinishTime1" class="int" onfocus="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;})" style="width: 70px;" />
                    &nbsp;-&nbsp;
                    <input name="tbFinishTime2" type="text" id="tbFinishTime2" class="int" onfocus="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;})" style="width: 70px;" />

                </td>
                <td style="padding-left: 14px;" rowspan="2">&nbsp;
                    <input type="button" class="button" id="btnSearch" value="搜 索" />
                    &nbsp;
                    

                </td>
            </tr>
            <tr>          <td class="textAlignRight">事务状态：
                </td>
                <td class="borderRight">
                    <select name="ddlDoStatus" id="ddlDoStatus" class="int">
	<option value="0">未处理</option>
	<option value="1">进行中</option>
	<option value="2">已完成</option>

</select>
                </td>
                <td class="textAlignRight">事务名称：
                </td>
                <td class="borderRight">
                    <input name="tbCampusWorkName" type="text" id="tbCampusWorkName" class="int" style="width: 160px;" />

                </td>
      
            </tr>
        </table>
        <table id='Test' style='display:none;'></table><input type='text' style='display:none;' id='etmparams' name='etmparams' value='[{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"","Name":"CampusWorkGuid","Width":35,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":true,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":"CampusWorkName,DoStatus","IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"CampusWorkAct","Display":"操作","Name":"CampusWorkGuid,DoStatus,bd52eb02-7ff3-49f5-b93b-b1d98c31e8a0","Width":162,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"CampusWorkLink","Display":"事务名称","Name":"CampusWorkName,CampusWorkGuid","Width":200,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"left","Checkbox":false,"IsLink":true,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"事务类型","Name":"CategoryName","Width":90,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"left","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"负责人","Name":"StaffName","Width":120,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"left","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":"yyyy-MM-dd","ColumnType":"DateTime","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"预计完成时间","Name":"PredictFinishTime","Width":110,"Sortable":true,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"DoStatus","Display":"事务状态","Name":"DoStatus","Width":100,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"left","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"录入人员","Name":"CreatorName","Width":100,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"left","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":"yyyy-MM-dd HH:mm","ColumnType":"DateTime","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"录入时间","Name":"CreateTime","Width":110,"Sortable":true,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false}]'/><input type='text' style='display:none;' id='etmUrlparams' name='etmUrlparams' value='[{"Key":"navId","Value":"bd52eb02-7ff3-49f5-b93b-b1d98c31e8a0"}]'/><input type='text' style='display:none;' id='etmPageUrl' name='etmPageUrl' value='http://vip.yj.etmcn.com/Modules/OA/CampusWorkList.aspx?navId=bd52eb02-7ff3-49f5-b93b-b1d98c31e8a0'/><input type='text' style='display:none;' id='pagename' name='pagename' value='OA_CampusWorkList'/><input type='text' style='display:none;' id='pageamethod' name='pageamethod' value='OA_CampusWorkListOA_CampusWorkList'/><script type='text/javascript'> var etmFormId='form1';function fixIE9() {if ($.browser.msie && $.browser.version == 9) {$('#form1 select').each(function () {var name = $(this).attr('name');if (name != undefined && name.length > 0) {var value = $(this).val();if (value == null) {value = $(this).find('option:first').attr('value');$(this).val(value);}}});}}function RefreshGrid(){ $('#Test').flexOptions().flexReload(); };function addFormData() {fixIE9(); var dt = $('#form1').serializeArray(); $('#Test').flexOptions({ params: dt }); return true; }$(function () { $('#btnSearch').click(function () { $('#Test').flexOptions({ newp: 1 }).flexReload(); return false; }); });$('#Test').flexigrid({url: './data/bgYggl.json',sortname: 'CreateTime',sortorder: 'desc',usepager: true,useRp: true,rpOptions: [20,30,50,100,200],rp: 30,colModel: [{ display: '', name: 'CampusWorkGuid',etmname:'CampusWorkGuid', width: 35, sortable: false, align: 'Center', checkbox: true ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '操作', name: 'CampusWorkGuid,DoStatus,bd52eb02-7ff3-49f5-b93b-b1d98c31e8a0',etmname:'CampusWorkAct', width: 162, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '事务名称', name: 'CampusWorkName,CampusWorkGuid',etmname:'CampusWorkLink', width: 200, sortable: false, align: 'left', checkbox: false ,IsLink:true,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '事务类型', name: 'CategoryName',etmname:'CategoryName', width: 90, sortable: false, align: 'left', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '负责人', name: 'StaffName',etmname:'StaffName', width: 120, sortable: false, align: 'left', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '预计完成时间', name: 'PredictFinishTime',etmname:'PredictFinishTime', width: 110, sortable: true, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'yyyy-MM-dd',ColumnType:'DateTime',IsJsAddColumn:false},{ display: '事务状态', name: 'DoStatus',etmname:'DoStatus', width: 100, sortable: false, align: 'left', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '录入人员', name: 'CreatorName',etmname:'CreatorName', width: 100, sortable: false, align: 'left', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '录入时间', name: 'CreateTime',etmname:'CreateTime', width: 110, sortable: true, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'yyyy-MM-dd HH:mm',ColumnType:'DateTime',IsJsAddColumn:false}],width: $(window).width(),height: $(window).height()-235+60,onSubmit: addFormData});</script>
        <div style="margin-left: 20px;"><input type="submit" name="btnAdd" value="添 加" onclick="return Add();" id="btnAdd" class="button" />
                    &nbsp;&nbsp;
            <input type="submit" name="btnDel" value="批量删除" onclick="return Del();" id="btnDel" class="button" /></div>
    </form>
</body>
</html>
